package laMalinche.AnnotatedRules;

import laMalinche.propertyChangeAdapters.rules.BasicConstraintRule;
import laMalinche.rete.rule.ActionType;

/**
 * Created by IntelliJ IDEA.
 * User: ranran
 * Date: Aug 23, 2009
 * Time: 7:33:00 AM
 * To change this template use File | Settings | File Templates.
 */
public class AnnotatedMethodToConstraintRule<S> extends BasicConstraintRule  implements InScopeOf<S> {
    private S scope;

    public AnnotatedMethodToConstraintRule(AnnotateMethod annotateMethod) {
//        this.annotateMethod = annotateMethod;
        this.setAction(annotateMethod.getAction());
    }

    public AnnotatedMethodToConstraintRule(String name, final ActionType actionType) {
        super(name, actionType);
    }


    public AnnotatedMethodToConstraintRule(String name) {
        super(name);
    }

    public S getScope() {
        return scope;
    }

    public void setScope(S scope) {
        this.scope = scope;
    }
}
